package tests;

import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNot.not;
import static org.hamcrest.number.OrderingComparison.lessThan;
import static org.junit.Assert.assertThat;
import org.junit.Test;

import main.Fibo;


public class FiboTest {
	@Test
	public void test1() {
		assertThat(Fibo.fibo(2), is(1));
	}

	@Test(expected=IllegalArgumentException.class)
	public void test2() {
		assertThat(Fibo.fibo(-2), is(not(lessThan(0))));
	}

	@Test
	public void test3() {
		assertThat(Fibo.fibo(4), is(3));
	}

	@Test(timeout=1000)
	public void test4() {
		Fibo.fibo(1000);
	}
}
